import request from '@/utils/request'
/**
 * 获取全部广告列表
 * @param params
 * @returns {*}
 */
export function getAdminAdvertisementListApi(params) {
  return request({
    url: '/getAdminAdvertisementList',
    method: 'GET',
    params
  })
}
/**
 * 编辑广告
 * @param data
 * @returns {*}
 */
export function editAdvertisementApi(data) {
  return request({
    url: '/editAdvertisement',
    method: 'POST',
    data
  })
}
/**
 * 编辑查询
 * @param params
 * @returns {*}
 */
export function getAdvertisementByIdApi(params) {
  return request({
    url: '/getAdvertisementById',
    method: 'GET',
    params
  })
}

/**
 * 编辑查询
 * @param params
 * @returns {*}
 */
export function deleteAdvertisementByIdApi(params) {
  return request({
    url: '/deleteAdvertisementById',
    method: 'POST',
    params
  })
}











